package com.example.wishstar.model;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "oldwish")
public class OldWish {
    @PrimaryKey()
    @ColumnInfo(name = "wishId", typeAffinity = ColumnInfo.INTEGER)
    public int wishId;

    @ColumnInfo(name = "userId", typeAffinity = ColumnInfo.INTEGER)
    public int userId;

    @ColumnInfo(name = "wishTitle", typeAffinity = ColumnInfo.TEXT)
    public String wishTitle;

    @ColumnInfo(name = "wishDetails", typeAffinity = ColumnInfo.TEXT)
    public String wishDetails;

    @ColumnInfo(name = "wishDate", typeAffinity = ColumnInfo.TEXT)
    public String wishDate;

    @ColumnInfo(name = "wishIcon", typeAffinity = ColumnInfo.INTEGER)
    public int wishIcon;

    @ColumnInfo(name = "isFinish", typeAffinity = ColumnInfo.INTEGER)
    public int isFinish;

    @ColumnInfo(name = "favourNum", typeAffinity = ColumnInfo.INTEGER)
    public int favourNum;

    @ColumnInfo(name = "favourNumString", typeAffinity = ColumnInfo.TEXT)
    public String favourNumString;

    @ColumnInfo(name = "finishTime", typeAffinity = ColumnInfo.TEXT)
    public String finishTime;

    public OldWish(int wishId, int userId, String wishTitle, String wishDetails, String wishDate, int wishIcon, int isFinish, int favourNum, String favourNumString, String finishTime) {
        this.wishId = wishId;
        this.userId = userId;
        this.wishTitle = wishTitle;
        this.wishDetails = wishDetails;
        this.wishDate = wishDate;
        this.wishIcon = wishIcon;
        this.isFinish = isFinish;
        this.favourNum = favourNum;
        this.favourNumString = favourNumString;
        this.finishTime = finishTime;
    }

    @Override
    public String toString() {
        return "OldWish{" +
                "wishId=" + wishId +
                ", userId=" + userId +
                ", wishTitle='" + wishTitle + '\'' +
                ", wishDetails='" + wishDetails + '\'' +
                ", wishDate='" + wishDate + '\'' +
                ", wishIcon=" + wishIcon +
                ", isFinish=" + isFinish +
                ", favourNum=" + favourNum +
                ", favourNumString='" + favourNumString + '\'' +
                ", finishTime='" + finishTime + '\'' +
                '}';
    }
}
